package com.bup.gn.utils.dialect;

import org.thymeleaf.dialect.AbstractDialect;
import org.thymeleaf.processor.IProcessor;

import java.util.HashSet;
import java.util.Set;

public class SecurityDialect extends AbstractDialect {

    public String getPrefix() {
        return "security";
    }

    public boolean isLenient() {
        return false;
    }

    @Override
    public Set<IProcessor> getProcessors() {
        final Set<IProcessor> processors = new HashSet<IProcessor>();
        processors.add(new AuthorizeElementProcessor());
        return processors;
    }
}
